<?php

class Passenger implements JsonSerializable
{
	private $passengerId;
	private $creationTime;
	private $boardTime;
	private $unboardTime;
	private $vehicleId;
	private $destinationStationId;
	
	public function __construct($passengerId, $creationTime, $boardTime, $unboardTime, $vehicleId, $destinationStationId)
	{
		$this->setPassengerId($passengerId);
		$this->setCreationTime($creationTime);
		$this->setBoardTime($boardTime);
		$this->setUnboardTime($unboardTime);
		$this->setVehicleId($vehicleId);
		$this->setDestinationStationId($destinationStationId);
	}

	public function getPassengerId()
	{
		return $this->passengerId;
	}

	public function setPassengerId($passengerId)
	{
		$this->passengerId = $passengerId;
	}

	public function getCreationTime()
	{
		return $this->creationTime;
	}

	public function setCreationTime($creationTime)
	{
		$this->creationTime = $creationTime;
	}
	
	public function getBoardTime()
	{
		return $this->boardTime;
	}

	public function setBoardTime($boardTime)
	{
		$this->boardTime = $boardTime;
	}
	
	public function getUnboardTime()
	{
		return $this->unboardTime;
	}

	public function setUnboardTime($unboardTime)
	{
		$this->unboardTime = $unboardTime;
	}
	
	public function getVehicleId()
	{
		return $this->vehicleId;
	}

	public function setVehicleId($vehicleId)
	{
		$this->vehicleId = $vehicleId;
	}
	
	public function getDestinationStationId()
	{
		return $this->destinationStationId;
	}

	public function setDestinationStationId($destinationStationId)
	{
		$this->destinationStationId = $destinationStationId;
	}

	public function jsonSerialize()
	{
		$data = array();
		$data['passengerId'] = $this->passengerId;
		$data['creationTime'] = $this->creationTime;
		$data['boardTime'] = $this->boardTime;
		$data['unboardTime'] = $this->unboardTime;
		$data['vehicleId'] = $this->vehicleId;
		$data['destinationStationId'] = $this->destinationStationId;
		return $data;
	}
}

?>